﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.LogisticsCompany
{
    /// <summary>
    /// 物流公司更新模型
    /// </summary>
    public class LogisticsCompanyUpdateDTO
    {
        /// <summary>
        /// 物流公司Id
        /// </summary>
        [Required(ErrorMessage = "物流公司Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 物流公司编码
        /// </summary>
        [Required(ErrorMessage = "物流公司编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 物流公司名称
        /// </summary>
        [Required(ErrorMessage = "物流公司名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 物流公司地址
        /// </summary>
        [Required(ErrorMessage = "物流公司地址Address不能为空")]
        public string Address { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Required(ErrorMessage = "联系人Contact不能为空")]
        public string Contact { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Required(ErrorMessage = "电话Phone不能为空")]
        public string Phone { get; set; }
    }
}
